﻿@{
    Layout = null;

    if (!(ViewBag.Project.Language == CodeLanguage.Cs && ViewBag.Project.ViewEngine == ViewEngine.WebForms))
    {
        WriteTo(new StringWriter(), RenderSection("cs_webforms", false));
    }
    if (!(ViewBag.Project.Language == CodeLanguage.Cs && (ViewBag.Project.ViewEngine == ViewEngine.Mvc || ViewBag.Project.ViewEngine == ViewEngine.Razor)))
    {
        WriteTo(new StringWriter(), RenderSection("cs_mvc", false));
    }
    if (!(ViewBag.Project.Language == CodeLanguage.Vb && ViewBag.Project.ViewEngine == ViewEngine.WebForms))
    {
        WriteTo(new StringWriter(), RenderSection("vb_webforms", false));
    }
    if (!(ViewBag.Project.Language == CodeLanguage.Vb && (ViewBag.Project.ViewEngine == ViewEngine.Mvc || ViewBag.Project.ViewEngine == ViewEngine.Razor)))
    {
        WriteTo(new StringWriter(), RenderSection("vb_mvc", false));
    }
}
@if (ViewBag.Project.Language == CodeLanguage.Cs && ViewBag.Project.ViewEngine == ViewEngine.WebForms)
{
@RenderSection("cs_webforms")
}
else if (ViewBag.Project.Language == CodeLanguage.Cs && (ViewBag.Project.ViewEngine == ViewEngine.Mvc || ViewBag.Project.ViewEngine == ViewEngine.Razor))
{
@RenderSection("cs_mvc")
}
else if (ViewBag.Project.Language == CodeLanguage.Vb && ViewBag.Project.ViewEngine == ViewEngine.WebForms)
{
@RenderSection("vb_webforms")
}
else if (ViewBag.Project.Language == CodeLanguage.Vb && (ViewBag.Project.ViewEngine == ViewEngine.Mvc || ViewBag.Project.ViewEngine == ViewEngine.Razor))
{
@RenderSection("vb_mvc")
}